<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>使用Servlet实现文件上传</title>
</head>
<body>
<h1>Servlet3.0之后就支持文件上传，不需要三方库支持！
</h1>
<br/>
<form action="upload" method="post" enctype="multipart/form-data">
    <input type="file" name="file">
    <input type="submit" value="上传">
</form>
</body>
</html>